<template>
  <div>
<!--    <h1>User / {{$route.params.username}}</h1>-->
    <h1>User / {{username}}</h1>
    <hr>
    <h1 style="background-color: red">中间的的是子router-view</h1>
    <router-view></router-view>
    <h1 style="background-color: red">中间的的是子router-view</h1>
  </div>
</template>

<script>
export default {
  name: "User",
  props: ['username']
}
</script>

<style scoped>

</style>